package com.gecba.system.service;

import com.gecba.modular.jpa.service.IService;
import com.gecba.system.entity.SysOssFile;
import com.gecba.system.entity.SysPermission;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author ChenBo
 * @className SysOssFileService
 * @date 2021/7/25
 */
public interface SysOssFileService extends IService<SysOssFile,Long> {

    /**
     * OSS上传文件
     * @param multipartFile
     * @return
     */
    SysOssFile upload(MultipartFile multipartFile);

    /**
     * OSS删除文件
     * @param fileName
     * @return
     */
    int deleteByFileName(String fileName);
}
